﻿<?xml version="1.0" encoding="utf-8" ?>
<log4net debug="false">
  
  <appender name="AspNetTraceAppender" type="log4net.Appender.AspNetTraceAppender">
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="[%thread] %-5level - %message" />
    </layout>
  </appender>

    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
        <File value="log/log"/>
        <DatePattern value="MMdd&quot;.txt&quot;"/>
        <AppendToFile value="true"/>
        <Encoding value="UTF-8"/>
        <RollingStyle value="Composite"/>
        <StaticLogFileName value="false"/>
        <maxSizeRollBackups value="7" />
        <maximumFileSize value="25MB" />
        <layout type="log4net.Layout.PatternLayout">
            <param name="ConversionPattern" value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline"/>
        </layout>
    </appender>

  <appender name="TraceAppender" type="log4net.Appender.TraceAppender">
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%-5level %M - %message%newline" />
      </layout>
  </appender>

  <!-- Set default logging level to DEBUG -->
  <root>
    <level value="INFO" />
    <!--<appender-ref ref="AspNetTraceAppender" />-->
    <!--<appender-ref ref="TraceAppender" />-->
    <appender-ref ref="RollingFileAppender" />
  </root>
  <!--
    In Spring.NET there is a 1-1 correspondence between the logger name and
    the namespace of the class doing the logging...
  -->
  <logger name="Spring">
    <level value="INFO" />
  </logger>
  <logger name="NHibernate">
    <level value="INFO" />
  </logger>
</log4net>